<?php

/**
 * @developer Socheat
 * @copyright 2012
 */
    //select from where to_user
    $mailpath   = "to_user='".$_SESSION['username']."'";
    $email      = new mailUser();
    $email      = $email->getmail($mailpath);
    //$emailgets   = mysql_fetch_assoc($email); 
    
    // for product
   //$product_detail = new prodcut_tb();
    //$GetProduct=$product_detail->product_detail($emailgets['pro_id']);
    //$Get_rows=mysql_fetch_assoc($GetProduct); 
?>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
	<style>
    .toggler
    {
        margin: 10px 0 0 0;
    }
	.button {		
		text-decoration: none;        
	}
    .point
    {
        cursor: pointer;
    }
	#effect {
		position: relative;
		padding: 0.4em;
	}
	h3.statistic {
		margin: 0;
		padding: 0.4em;
		text-align: left;
        font-size: 14px;
        display:block;
	}
    .t_none
    {
        border:none;
    }
	</style>
<div style="margin: 10px 15px 0 0;">
<h3 class="statistic ui-widget-header ui-corner-all">Inbox</h3>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th scope="col"><strong>ID</strong></th>
    <th scope="col"><strong>Subject</strong></th>
    <th scope="col"><strong>Date</strong></th>
    <th scope="col"><strong>From</strong></th>
  </tr>
<?php
    while($emailget= mysql_fetch_assoc($email))
    {
        ?>
          <tr>
    <td><?php echo $emailget['email_id'];?></td>
    <td><?php echo $emailget['title'];?></td>
    <td><?php echo $emailget['added_date'];?></td>
    <td><?php echo $emailget['userid'];?></td>
  </tr>
        
        <?php            
    }
?> 
</table>
<?php echo $emailget['userid'];?>
</div>   